package com.asoft.examonline.exammanager.view.foreveryone;

import com.asoft.common.basedata.model.Type;
import com.asoft.examonline.define.QuestionTypeCode;
import com.asoft.examonline.exammanager.util.CodeUtil;

public class QuestionType2Dir
{
        // 取得目录名称
        public static String toDir(Type questionType)
        {
                String qtCode = CodeUtil.subjectQuestTypeCode2QuestType(questionType);
                if(qtCode.equals(QuestionTypeCode.SIMPLE_SELECT))
                {
                        return "simpleSelect";
                }
                if(qtCode.equals(QuestionTypeCode.MULTI_SELECT))
                {
                        return "multiSelect";
                }
                return "subjective";
        }
}
